/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Ventana1.java
 *
 * Created on 07-may-2012, 12:31:38
 */
package gui;

/**
 *
 * @author usuario_local
 */
public class Ventana1 extends javax.swing.JFrame {

    /** Creates new form Ventana1 */
    public Ventana1() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jButton_v1salir = new javax.swing.JButton();
        jButton_v1modificar = new javax.swing.JButton();
        jButton_v1consultar = new javax.swing.JButton();
        jButton_v1crear = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Base de Datos");
        setName("Base de Datos"); // NOI18N
        setResizable(false);

        jButton_v1salir.setText("Salir");
        jButton_v1salir.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton_v1salirMouseClicked(evt);
            }
        });

        jButton_v1modificar.setText("Modificar");
        jButton_v1modificar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton_v1modificarMouseClicked(evt);
            }
        });

        jButton_v1consultar.setText("Consultar");
        jButton_v1consultar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton_v1consultarMouseClicked(evt);
            }
        });

        jButton_v1crear.setText("Crear");
        jButton_v1crear.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton_v1crearMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jButton_v1salir, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jButton_v1consultar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jButton_v1modificar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jButton_v1crear, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jButton_v1crear)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton_v1modificar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton_v1consultar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton_v1salir))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton_v1salirMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton_v1salirMouseClicked
        // TODO add your handling code here:
        System.exit(0);
    }//GEN-LAST:event_jButton_v1salirMouseClicked

    private void jButton_v1crearMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton_v1crearMouseClicked
        // TODO add your handling code here:
        Ventana2 ventana2 = new Ventana2(this);
        ventana2.setVisible(true);
        this.setVisible(false);
    }//GEN-LAST:event_jButton_v1crearMouseClicked

private void jButton_v1modificarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton_v1modificarMouseClicked
// TODO add your handling code here:
    VentanaModificar vm = new VentanaModificar(this);
    vm.setVisible(true);
    this.setVisible(false);
}//GEN-LAST:event_jButton_v1modificarMouseClicked

    private void jButton_v1consultarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton_v1consultarMouseClicked
        // TODO add your handling code here:
        VentanaConsultaTipo vct = new VentanaConsultaTipo(this);
        vct.setVisible(true);
        this.setVisible(false);
    }//GEN-LAST:event_jButton_v1consultarMouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton_v1consultar;
    private javax.swing.JButton jButton_v1crear;
    private javax.swing.JButton jButton_v1modificar;
    private javax.swing.JButton jButton_v1salir;
    private javax.swing.JPanel jPanel1;
    // End of variables declaration//GEN-END:variables
}
